package cn.gyn.gyn_rpc_demo;


import cn.gyn.gynrpc.core.annotation.GynProvider;
import org.springframework.stereotype.Component;

@Component
@GynProvider
public class OrderServiceImpl implements OrderService {
    @Override
    public TripOrder query(int orderId) {
        return new TripOrder() {{
            setDesc("春秋航空");
            setId(orderId);
            setPrice(387.2f);
        }};
    }
}
